import turtle as t
x=-150
y1=150
y2=0
t.speed(1000)

for i in range(0,256,50):
    r=i/255
    for j in range(0,256,50):
        g=j/255
        if(j>=150):
            y=y2
        else:
            y=y1
        if(j==150):
            x=-150
        for k in range(0,256,50):
            b=k/255
            t.penup()
            t.goto(x,y)
            t.pendown()
            t.fillcolor(r,g,b)
            print("{0} {1} {2}".format(r,g,b))
            t.begin_fill()
            for n in range(4):
                t.fd(15)
                t.left(90)
            t.end_fill()
            x+=20
        x+=15
    y1-=20
    y2-=20
    x=-150
t.done()